import { createRouter, createWebHistory } from 'vue-router'
import demo from '../view/demo.vue'
import hello from '@/view/hello.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
      {
        path: '/demo',
        name: 'demo',
        component:demo
      },
      {
        path: '/hello',
        name: 'hello',
        component:hello
      },
  ]
})

export default router
